﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MT072 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;

    [Description("Test Mode Selection")]
    public Tag127 TestModeSelection_127
    {
      get
      {
        return new Tag127((SwiftElement) this, 0, (SwiftDefinitionElement) MT072.U0002);
      }
    }

    [Description("Test Mode Selection")]
    public Tag127 Tag127_TestModeSelection
    {
      get
      {
        return this.TestModeSelection_127;
      }
    }

    public MT072()
      : base(true)
    {
    }

    public MT072(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT072.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT072.MessageDefinition = new SwiftMessageDefinition("MT072", "Test Mode Selection");
      MT072.U0002 = new SwiftTagDefinition("TestModeSelection_127", "Test Mode Selection");
      MT072.U0002.TagName = "{127:";
      MT072.U0003 = new SwiftTagSubItemDefinition("TestModeSelection", "Test mode selection");
      MT072.U0002.Elements.Add((SwiftDefinitionElement) MT072.U0003);
      MT072.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT072.U0002);
    }
  }
}
